/**
 *
 */
package com.googlecode.bip.entity.deprecated;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;

/**
 * Will be removed
 * @author Claude CHOISNET
 */
@Deprecated
public class UserValue implements Serializable
{
    private static final long serialVersionUID = 1L;
    //private final static transient Logger slogger = Logger.getLogger( UserValue.class );

    private int idcategory;
    //private String idlocal;
    private Timestamp userdate;
    private int uservalue;

    private String usercomment;

    //private int minvalue;
    //private int maxvalue;

    public UserValue()
    {

    }

    public UserValue set( final ResultSet rSet ) throws SQLException
    {
        idcategory  = rSet.getInt( "idcategory" );
        //idlocal     = rSet.getString( "idlocal" );;
        userdate    = rSet.getTimestamp( "userdate" );
        uservalue   = rSet.getInt( "uservalue" );

        usercomment = rSet.getString( "usercomment" );

        //minvalue    = rSet.getInt( "minvalue" );
        //maxvalue    = rSet.getInt( "maxvalue" );

        return this;
    }

    /**
     * @return the idcategory
     */
    public int getIdcategory()
    {
        return idcategory;
    }

    /**
     * @param idcategory the idcategory to set
     */
    public void setIdcategory( int idcategory )
    {
        this.idcategory = idcategory;
    }

//    /**
//     * @return the idlocal
//     */
//    public String getIdlocal()
//    {
//        return idlocal;
//    }
//
//    /**
//     * @param idlocal the idlocal to set
//     */
//    public void setIdlocal( String idlocal )
//    {
//        this.idlocal = idlocal;
//    }

    /**
     * @return the userdate
     */
    public Timestamp getUserdate()
    {
        return userdate;
    }

    /**
     * @param userdate the userdate to set
     */
    public void setUserdate( Timestamp userdate )
    {
        this.userdate = userdate;
    }

    /**
     * @return the uservalue
     */
    public int getUservalue()
    {
        return uservalue;
    }

    /**
     * @param uservalue the uservalue to set
     */
    public void setUservalue( int uservalue )
    {
        this.uservalue = uservalue;
    }

    /**
     * @return the usercomment
     */
    public String getUsercomment()
    {
        return usercomment;
    }

    /**
     * @param usercomment the usercomment to set
     */
    public void setUsercomment( String usercomment )
    {
        this.usercomment = usercomment;
    }

//    /**
//     * @return the minvalue
//     */
//    public int getMinvalue()
//    {
//        return minvalue;
//    }
//
//    /**
//     * @param minvalue the minvalue to set
//     */
//    public void setMinvalue( int minvalue )
//    {
//        this.minvalue = minvalue;
//    }
//
//    /**
//     * @return the maxvalue
//     */
//    public int getMaxvalue()
//    {
//        return maxvalue;
//    }
//
//    /**
//     * @param maxvalue the maxvalue to set
//     */
//    public void setMaxvalue( int maxvalue )
//    {
//        this.maxvalue = maxvalue;
//    }
}
